package com.naiterui.ehp.bs.cms.modules.agent.vo;

import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author yiren
 * @since 2022/2/14
 */
@Data
@Builder
public class TreeDataVO {
	private Long id;
	private String name;
	private List<TreeDataVO> child;

	public static TreeDataVO of(Long id, String name){
		return TreeDataVO.builder().id(id).name(name).build();
	}
}
